home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / include / clib / dicecache_protos.h < prev    next >
C/C++ Source or Header  |  1994-02-01  |  827b  |  36 lines

  1. /* $VER: clib/dicecache_protos.h 1.0 (17.4.93) */
  2. #ifndef CLIB_DICECACHE_PROTOS_H
  3. #define CLIB_DICECACHE_PROTOS_H 1
  4.  
  5. /*
  6.  *  If DiceCacheOpen() returns NULL, *psize contains:
  7.  */
  8.  
  9. #define PS_CACHE_DISABLED   0    /*  disabled or not read-only    */
  10. #define PS_NO_MATCH        1
  11. #define PS_LOCK_FAILED        2
  12. #define PS_GENERAL_FAILURE  9
  13.  
  14. /*
  15.  *
  16.  */
  17.  
  18. #ifndef _DICECACHE_INTERNAL_SKIP
  19.  
  20. typedef void *CacheNode;
  21.  
  22. CacheNode *DiceCacheOpen(const char *, const char *, long *);
  23. void DiceCacheClose(CacheNode *);
  24. void *DiceCacheSeek(CacheNode *, long, long *);
  25. long DiceCacheGetSuffixes(char *, long);
  26. long DiceCacheAddSuffix(const char *);
  27. long DiceCacheRemSuffix(const char *);
  28. void DiceCacheFlush(long);
  29. void DiceCacheSet(long *, long);
  30. void DiceCacheGet(long *, long);
  31. void DiceCacheEnable(void);
  32. void DiceCacheDisable(void);
  33.  
  34. #endif
  35. #endif
  36.